-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add cloud storage support for session start #3629
Conversation
1ab5953
to
79d6b3a
Compare
Pull Request Test Coverage Report for Build 7553200191
💛 - Coveralls |
b37e9e5
to
debdfd6
Compare
debdfd6
to
b4f137b
Compare
e22bc6d
to
deb1302
Compare
deb1302
to
23553b6
Compare
@Panaetius I started reviewing this. But I also wanted to try it out. So I made a project, added cloud storage and then cloned it locally. Then I ran
|
@@ -261,6 +263,38 @@ def find_image(self, image_name: str, config: Optional[Dict[str, Any]]) -> bool: | |||
== 200 | |||
) | |||
|
|||
def get_cloudstorage(self): | |||
"""Get cloudstorage configured for the project.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know where to put this but I think we need a warning in the docker provider that if there is any cloud storage in the project it will not be mounted. We dont have to implement this but we should let people now what the limitations are.
Raises an exception for invalid storage. | ||
""" | ||
self._send_request( | ||
"/storage_schema/validate", body=storage.configuration, method="POST", expected_response=[204] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the expected reponse for validate supposed to be really 204?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes when given a valid config it just returns an empty 204 and if invalid an appropriate 4xx code
325d93b
to
f3dd0d9
Compare
090c613
to
f407d5a
Compare
…ienceCenter/renku-python into feat/rclone-storage-commands
8f46103
to
7abb677
Compare
Also adds
renku storage ls
adapted for SwissDataScienceCenter/renku-notebooks#1707 and related features